package com.dandelion.manager.system.service;

import java.util.List;

import com.dandelion.commons.web.model.AjaxResponse;
import com.dandelion.manager.system.domain.Resource;

public interface ResourceService {
	
	public AjaxResponse add(Resource record) ;
	
	public AjaxResponse delete(Long id) ;
	
	public AjaxResponse update(Resource record) ;
	
	public Resource get(Long id) ;
	
	public List<Resource> treegridByMenu(Long menuId) ;
	
	public List<Resource> treegridByMenuLinkPermit(Long menuId) ;
	
	public List<Resource> treegridByMenuView(Long menuId) ;
	
	public List<Resource> treegridById(Long id);
	
	public Resource selectByHref(String href) ;
	
	public Resource getResourceLinkPermit(Long id) ;
	
	
	
}
